﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;

namespace SC.Net
{
    public class TcpServerErrorEventArgs: EventArgs
    {
        public readonly ErrPosition Errposition;

        public readonly Exception Exception;

        public readonly Socket Socket;

        public TcpServerErrorEventArgs(Exception exception, Socket socket, ErrPosition errposition)
        {
            Exception = exception;
            Errposition = errposition;
            Socket = socket;
        }
    }

    /// <summary>
    /// 错误位置枚举
    /// </summary>
    public enum ErrPosition
    {
        ServerStar,
        RevData,
        StarListen,
        CloseServer,
        AcceptCallback,
        ReadCallBack,
        SendCallback
    }

}
